//
//  CarViolationSearchResponse.m
//  EasyToo
//
//  Created by linshengqin on 13-9-9.
//违法顺序号#文书号#文书类型#违法行为#违章地点#违法城市#本金#滞纳金#服务费#违法时间#状态|违法顺序号#文书号#文书类型#违法行为#违章地点#违法城市#本金#滞纳金#服务费#状态
//

#import "CarViolationSearchResponse.h"
@implementation CarViolationSearchResponse
- (void)parse
{
    [super parse];
    
    if (self.bodyDict)
    {
        self.violationInfoArray  = [[NSMutableArray alloc] init];
        NSString* str = GetDictionaryStringDefaultNil(self.bodyDict, @"AmerceRecords");
        if(str && [str length] > 0)
        {
            NSArray* array = [str componentsSeparatedByString:@"|"];//将字符串整体作为分割条件 返回值为NSArray不可变数组
            for(int i=0;i<[array count];i++)
            {
                NSArray* array2 = [array[i] componentsSeparatedByString:@"#"];
                [self.violationInfoArray addObject:array2];
            }
        }
        
        self.postFee = GetDictionaryStringDefaultNil(self.bodyDict, @"PostFee");

//        NSLog(@"%@,%@",self.amerceRecords,self.postFee);
    }
}
@end
